﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NLog.Demo
{
    class Program
    {

        private static Logger logger = LogManager.GetCurrentClassLogger();
        static void Main(string[] args)
        {
            DivideByZeroException ex = new DivideByZeroException();
            logger.Trace("Trace Message");
            logger.Debug("Debug Message");
            logger.Info("Info Message");
            logger.Error(ex,"Error Message");
            logger.Fatal("Fatal Message");
            Console.ReadLine();
        }
    }
}
